package utils;

public class SearchOptions {
	private String query;
	private boolean bSearch;
	public SearchOptions(String query, boolean bSearch)
	{
		this.setQuery(query);
		this.setbSearch(bSearch);
	}
	
	public boolean equals(Object obj)
	{
		if(this==obj)
			return true;
		if(!(obj instanceof Vector))
			return false;
		SearchOptions so=(SearchOptions)obj;
		return (this.getQuery()==so.getQuery())&&(this.isbSearch()==so.isbSearch());
	
	}
	
	public int hashCode()
	{
		return this.query.hashCode();
	}
	
	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}

	public boolean isbSearch() {
		return bSearch;
	}

	public void setbSearch(boolean bSearch) {
		this.bSearch = bSearch;
	}
	
	
}
